include "resource.thrift"
namespace java com.broada.apm.thrift.service
service ResourceController {
	resource.Resource getResourceById(1: string id),
	resource.Resource getKeyResourceById(1: string id),
	bool saveResource(1: resource.Resource resource),
	bool batchSaveResource(1: list<resource.Resource> resList),
	bool saveKeyResource(1: resource.Resource resource),
	bool batchSaveKeyResource(1: list<resource.Resource> resList),
	list<resource.Resource> getKeyResourcesByAppId(1: string appId),
	list<resource.Resource> getResourcesByCondition(1: resource.Resource resource),
	resource.Resource deleteResource(1: resource.Resource resource),
	list<resource.Resource> getAllResources()

}